<template>
  <div>
    <div class="random">
      <div class="randomTitle">随便看看</div>
      <div class="trade">
        <span>换一组</span>
        <span class="iconfont icon-shuaxin"></span>
      </div>
    </div>
    <div class="randomList">
      <div
        class="menuList"
        v-for="(temp,index) in 4"
        :key="index"
      >
        <div class="menuPic">
          <img
            src="http://placehold.it/270x190"
            alt=""
          >
        </div>
        <div class="menuBtn">
          <div>创意视频</div>
        </div>
        <div class="line"></div>
      </div>

    </div>

  </div>
</template>

<style lang="less">
.random {
  color: #606060;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .randomTitle {
    font-size: 24px;
  }
  .trade span {
    padding-left: 5px;
    font-size: 16px;
  }
}
.randomList {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 40px;
  .menuList {
    position: relative;
    // border:1px solid #ccc;
    width: 270px;
    // border-bottom: 3px solid #E44F50;
    // height: 190px;
    // padding: 5px;
    // background: #E44F50;
    .line {
      width: 0px;
      height: 3px;
      border-radius: 5px;
      background-color: #e44f50;
      -webkit-animation: line 3s linear;
      @-webkit-keyframes line {
        from {
          width: 0px;
        }
        to {
          width: 270px;
        }
      }
      
      // margin:0 auto;
      // position:absolute;
      // top:338px;
      // left:0px;
      // right:0px;
      :hover:after {
        width: 270px;
      }
    }

    .menuPic {
      // height: 190px;
      width: 100%;
      overflow: hidden;
      // border:1px solid #272756;
      background: #fafafa;
    }
    .menuBtn {
      padding: 20px 0;
      color: #444444;
      font-size: 18px;
    }
  }
}
</style>